<?php

/**
 * Register form.
 *
 * @package    ancient-wars
 * @subpackage form
 * @author     Your name here
 */
class RegisterForm extends sfGuardUserForm
{
  public function configure()
  {
    parent::configure();
    unset($this['user_id'], $this['first_name'], $this['last_name'], $this['birthday'], $this['email']);

    //$this->widgetSchema['birthday']= new sfWidgetFormDateJQueryUI(array("change_month" => true, "change_year" => true));
    $this->validatorSchema['email'] = new sfValidatorEmail();

    $this->validatorSchema['email'] = new sfValidatorPass(array('required' => false));
    $this->widgetSchema->setNameFormat('register[%s]');
  }
}
